import request from '@/utils/request'
//天气
export function weather(data) {
  return request({
    url: '/weather/weatherInfo',
    method: 'post',
    data
  })
}
//地震预警
export function getWarningLog(params) {
  return request({
    url: '/earlyWarningRecord/warningLog',
    method: 'get',
    params
  })
}
//地震速报
export function getQuickReportLog(params) {
  return request({
    url: '/earlyWarningRecord/quickReportLog',
    method: 'get',
    params
  })
}
//系统告警
export function getAlarmLogMinVOLog(params) {
  return request({
    url: '/alarmLog/alarmLogMinVOLog',
    method: 'get',
    params
  })
}

//地震预警速报
export function getHomeAlarm(params) {
  return request({
    url: '/earlyWarning/homeAlarm',
    method: 'get',
    params
  })
}

// 设备位置点位
// export function getDeviceSpot(params) {
//   return request({
//     url: '/zzy/homeDevice/homeDeviceAddress',
//     method: 'get',
//     params
//   })
// }

// 设备位置点位
export function getDeviceSpot(params) {
  return request({
    url: '/device/homeDeviceAddress',
    method: 'get',
    params
  })
}

// 近七天地震预警
export function getWarningLogSeven(params) {
  return request({
    url: '/earlyWarningRecord/warningLogSeven',
    method: 'get',
    params
  })
}

// 近七天震情速报
export function getQuickReportLogSeven(params) {
  return request({
    url: '/earlyWarningRecord/quickReportLogSeven',
    method: 'get',
    params
  })
}